import request from '@/utils/request'
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Gift_sale/gift_sale_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 物品列表
export function getSaleList(data, page) {
    return request({
        url: '/Accessories_sale/accessories_sale_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Gift_sale/gift_sale_page',
        method: 'post',
        data: data
    })
}
// 获取物品分页
export function getSalePage(data) {
    return request({
        url: '/Accessories_sale/accessories_sale_page',
        method: 'post',
        data: data
    })
}
// 提交
export function save(data) {
    return request({
        url: '/Gift_sale/edit_money',
        method: 'post',
        data: data
    })
}
export function del(data) {
    return request({
        url: '/Gift_sale/del_gift',
        method: 'post',
        data: data
    })
}
export function on_off(data) {
    return request({
        url: '/Gift_sale/on_off_line',
        method: 'post',
        data: data
    })
}
//修改售价
export function edit_money(data) {
    return request({
        url: '/Accessories_sale/edit_money',
        method: 'post',
        data: data
    })
}
//物品上架
export function sale_line(data) {
    return request({
        url: '/Accessories_sale/on_off_line',
        method: 'post',
        data: data
    })
}